1
'****************************** Module Header ******************************'
2 ' Module Name: Module1.vb
3 ' Project: NetTcpWCFService
4 ' Copyright (c) Microsoft Corporation.
6 ' NetTcpWCFService application's entrance, creating a serviceHost
9 ' This source is subject to the Microsoft Public License.
10 ' See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
11 ' All other rights reserved.
13 ' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
14 ' EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
15 ' WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
16 '***************************************************************************'
18 Imports System
.ServiceModel
23 Using host
= New ServiceHost(GetType(WeatherService
))
25 Console
.WriteLine("Service is running...")
26 Console
.WriteLine("Service address: " + host
.BaseAddresses(0).AbsoluteUri
)